package com.d0330;

import  java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.Properties;

public class TestMethods {
    public static void main(String[] args) {
        try {
            Class clazz = Account.class;
            Properties prop = new Properties();
            FileReader fr = new FileReader("src//com//d0330//config.properties");
            prop.load(fr);
            String tomethod = prop.getProperty("tomethod");
            Method method = clazz.getMethod(tomethod,double.class);
            System.out.println(tomethod);
        } catch (NoSuchMethodException e) {
            e.printStackTrace();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}